import React, {Component} from 'react';
import {NavLink} from 'react-router-dom';

class LinkButton extends Component {
	render() {
		return (
			<NavLink to={this.props.to}>
				<button className="btn btn-primary">
					<i className="fa fa-plus fa-fw"/>
					<span>{this.props.children}</span>
				</button>
			</NavLink>
		);
	}
}

export default LinkButton;